import {Button, notification} from "ant-design-vue";
import {h} from "vue";

export default function restoreMsg() {
  const key = `open${Date.now()}`;
  notification.open({
    message: "恢复购买记录",
    description: "我们已经帮您恢复了您上次尚未完成的订单，您可以继续完成订单或者重新开始一个新的订单。",
    
    btn: () => h(
      Button,
      {
        type: 'primary',
        size: 'small',
        onClick: () => notification.close(key),
      },
      {
        default: () => "确认",
      }
    ),
    key,
    duration: 5,
    placement: "bottomLeft",
  })
}